package org.whz.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;

/**
 * 商品
 */
@Data
public abstract class Commodity {
    private String name;
    /**
     * 商品单价
     */
    private BigDecimal price;
    /**
     * 优惠折扣 默认不打折扣
     */
    private BigDecimal discount = new BigDecimal("1");
}
